﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Albums.aspx.cs" Inherits="Solution.Albums" %>

<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
</asp:Content>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <asp:PlaceHolder runat="server" ID="phdRandomAlbum" Visible="False"></asp:PlaceHolder>
    <asp:Repeater runat="server" ID="rptAlbums" Visible="False">
        <ItemTemplate>
            <div class="album-wraper">
               <div class="album-thumb"><img src=<%# DataBinder.Eval(Container.DataItem, "Thumb") %>></div>
                
                <div class="album-info">
                    <div class="album-title"><a href='album.aspx?abl=<%# DataBinder.Eval(Container.DataItem, "Id") %>'>
                        <%# DataBinder.Eval(Container.DataItem, "Title") %>
                        </a>
                    </div>
                    <span><%# DataBinder.Eval(Container.DataItem, "Intro") %></span>
                </div>
            </div>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <hr style="color: black" />
            <div class="album-wraper">
                <div class="album-info-alt">
                    <div class="album-title"><a href='album.aspx?abl=<%# DataBinder.Eval(Container.DataItem, "Id") %>'>
                        <%# DataBinder.Eval(Container.DataItem, "Title") %>
                        </a>
                    </div>
                    <div class="album-intro"><span><%# DataBinder.Eval(Container.DataItem, "Intro") %></span></div>
                </div>
                
               <div class="album-thumb"><img src=<%# DataBinder.Eval(Container.DataItem, "Thumb") %>></div>
            </div>
        </AlternatingItemTemplate>
    </asp:Repeater>
    <asp:Repeater runat="server" ID="rptSubCategory" Visible="False">
        <ItemTemplate>
            <div class="album-wraper">
                <a href='albums.aspx?cat=<%# DataBinder.Eval(Container.DataItem, "Id") %>'>
                    <div class="album-thumb"><img src=<%# DataBinder.Eval(Container.DataItem, "Thumb") %>></div>
                    <span class="album-title" style="margin: 200px 0px 0px 20px; float: left;" >
                        <%# DataBinder.Eval(Container.DataItem, "Title") %>
                    </span>
                </a>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>